import re

phoneNumRegex = re.compile(r'(\(\d\d\d\))-(\d\d\d-\d\d\d\d)')

# Match对象
mo2 = phoneNumRegex.search('Call me at (415)-555-7973 tomorrow. (234)-435-3458 is my office.')
print(mo2.groups())
print('区号：'+ mo2.group(1))
print('电话号码：'+ mo2.group(2))
print('完整号码：'+ mo2.group(0))
